<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Settings
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Change Password</h2>
    <% using (Html.BeginForm(new { Action = "ChangePassword", Controller = "Home" }))
       { %>
    <table>
        <tr>
            <td>Current password:</td>
            <td><%= Html.Password("oldPassword")%></td>
            <td><%= Html.ValidationMessage("oldPassword")%></td>
        </tr>
        <tr>
            <td>New password:</td>
            <td><%= Html.Password("newPassword")%></td>
            <td><%= Html.ValidationMessage("newPassword")%></td>
        </tr>
        <tr>
            <td>Confirm new password:</td>
            <td><%= Html.Password("confirmPassword")%></td>
            <td><%= Html.ValidationMessage("confirmPassword")%></td>
        </tr>
    </table>
    <input type="submit" value="Change Password" /> 
    <% } %>

</asp:Content>
